package com.carrot.uaa.entity;

import com.carrot.uaa.constant.RedisConstants;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.redis.core.index.Indexed;

import java.io.Serializable;

/**
 *
 */
@Data
@RedisHash(value = RedisConstants.AUTHORIZATION_CONSENT)
public class RedisAuthorizationConsent implements Serializable {
    /**
     * 额外提供的主键
     */
    @Id
    private String id;
    @Indexed
    private String registeredClientId;
    @Indexed
    private String principalName;
    private String authorities;
}
